package cosc617_blackteam;

import java.util.ArrayList;

/**
 * @author Laura
 * Command to remove given orders from the order
 *  queue in theinfoaggregator
 */
public class CmdRemoveOrders implements I_Command {
	private InfoAggregator infoagg;
	private ArrayList<Order> orders;
	/**
	 * @param infoagg InfoAggregator to use
	 * @param orders ArrayList of orders to remove
	 */
	public CmdRemoveOrders(InfoAggregator infoagg, ArrayList<Order> orders){
		this.infoagg = infoagg;
		this.orders = orders;
	}
	@Override
	public Object execute() {
		infoagg.removeOrders(orders);
		return null;
	}

}
